<template>
  <div class="container">年纪:{{ $attrs.msg }}性别：{{$attrs.title}} 孙子组件：{{$attrs.msg}}</div>

</template>

<script>
export default {
  inheritAttrs: true,
  created () {
    console.log(111, '创建')
  },

  updated () {
    console.log(111, '更新')
  },
  mounted () {
    console.log(111, '挂载', this.$attrs)
  }
  // watch() {},
}
</script>

<!-- <style scoped lang='less'></style> -->
